package com.gopay.common.domain.cps;

import java.io.Serializable;
import javax.persistence.*;

import java.sql.Timestamp;
import java.math.BigDecimal;


/**
 * G商银通-收益记录
 * @CpsGainsCalRecord.java
 * @author mz
 * @2013-8-1 上午11:09:03  www.gopay.com.cn Inc.All rights reserved.
 */
@Entity
@Table(name="CPS_GAINS_CAL_RECORD")
public class CpsGainsCalRecord implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
    @SequenceGenerator(name = "CpsGainsCalRecordSequence", sequenceName = "CPS_GAINS_CAL_RECORD_SEQ")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "CpsGainsCalRecordSequence")
	private long sq;
	
	@Version
    @Column(name = "VERSION")
	private int version;

	@Column(name="ACCRUED_GAIN_AMT")
	private BigDecimal accruedGainAmt;

	@Column(name="ACCT_ID")
	private String acctId;

	@Column(name="ACTUAL_GAIN_AMT")
	private BigDecimal actualGainAmt;

	@Column(name="CAL_DATE")
	private String calDate;

	@Column(name="CAL_EXP")
	private String calExp;

	@Column(name="CAL_TIME")
	private String calTime;

	@Column(name="CREATED_TS")
	private Timestamp createdTs;

	@Column(name="CUR_BAL")
	private BigDecimal curBal;

	@Column(name="CUST_ID")
	private String custId;

	@Column(name="GAINS_RATIO")
	private String gainsRatio;

	@Column(name="GAINS_TYPE")
	private BigDecimal gainsType;

	@Column(name="JOB_ID")
	private String jobId;

	@Column(name="LAST_UPD_TRANCODE")
	private String lastUpdTrancode;

	@Column(name="LAST_UPD_TS")
	private Timestamp lastUpdTs;

	@Column(name="SETTLE_ORDER_NUM")
	private String settleOrderNum;

	@Column(name="SOLUTION_ID")
	private BigDecimal solutionId;

    public CpsGainsCalRecord() {
    }

	public long getSq() {
		return this.sq;
	}

	public void setSq(long sq) {
		this.sq = sq;
	}

	public BigDecimal getAccruedGainAmt() {
		return this.accruedGainAmt;
	}

	public void setAccruedGainAmt(BigDecimal accruedGainAmt) {
		this.accruedGainAmt = accruedGainAmt;
	}

	public String getAcctId() {
		return this.acctId;
	}

	public void setAcctId(String acctId) {
		this.acctId = acctId;
	}

	public BigDecimal getActualGainAmt() {
		return this.actualGainAmt;
	}

	public void setActualGainAmt(BigDecimal actualGainAmt) {
		this.actualGainAmt = actualGainAmt;
	}

	public String getCalDate() {
		return this.calDate;
	}

	public void setCalDate(String calDate) {
		this.calDate = calDate;
	}

	public String getCalExp() {
		return this.calExp;
	}

	public void setCalExp(String calExp) {
		this.calExp = calExp;
	}

	public String getCalTime() {
		return this.calTime;
	}

	public void setCalTime(String calTime) {
		this.calTime = calTime;
	}

	public Timestamp getCreatedTs() {
		return this.createdTs;
	}

	public void setCreatedTs(Timestamp createdTs) {
		this.createdTs = createdTs;
	}

	public BigDecimal getCurBal() {
		return this.curBal;
	}

	public void setCurBal(BigDecimal curBal) {
		this.curBal = curBal;
	}

	public String getCustId() {
		return this.custId;
	}

	public void setCustId(String custId) {
		this.custId = custId;
	}

	public String getGainsRatio() {
		return this.gainsRatio;
	}

	public void setGainsRatio(String gainsRatio) {
		this.gainsRatio = gainsRatio;
	}

	public BigDecimal getGainsType() {
		return this.gainsType;
	}

	public void setGainsType(BigDecimal gainsType) {
		this.gainsType = gainsType;
	}

	public String getJobId() {
		return this.jobId;
	}

	public void setJobId(String jobId) {
		this.jobId = jobId;
	}

	public String getLastUpdTrancode() {
		return this.lastUpdTrancode;
	}

	public void setLastUpdTrancode(String lastUpdTrancode) {
		this.lastUpdTrancode = lastUpdTrancode;
	}

	public Timestamp getLastUpdTs() {
		return this.lastUpdTs;
	}

	public void setLastUpdTs(Timestamp lastUpdTs) {
		this.lastUpdTs = lastUpdTs;
	}

	public String getSettleOrderNum() {
		return this.settleOrderNum;
	}

	public void setSettleOrderNum(String settleOrderNum) {
		this.settleOrderNum = settleOrderNum;
	}

	public BigDecimal getSolutionId() {
		return this.solutionId;
	}

	public void setSolutionId(BigDecimal solutionId) {
		this.solutionId = solutionId;
	}

    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }
	
	

}